home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
ghost
/
gs403src_amiga.lha
/
gs4.03
/
gcc-head.mak.in
< prev
next >
Wrap
Text File
|
1997-04-12
|
10KB
|
291 lines
# Copyright (C) 1989, 1995, 1996 Aladdin Enterprises. All rights reserved.
#
# This file is part of Aladdin Ghostscript.
#
# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
# or distributor accepts any responsibility for the consequences of using it,
# or for whether it serves any particular purpose or works at all, unless he
# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
# License (the "License") for full details.
#
# Every copy of Aladdin Ghostscript must include a copy of the License,
# normally in a plain ASCII text file named PUBLIC. The License grants you
# the right to copy, modify and redistribute Aladdin Ghostscript, but only
# under certain conditions described in the License. Among other things, the
# License requires that the copyright notice and this notice be preserved on
# all copies.
#### Start of system configuration section. ####
VPATH = @srcdir@
srcdir = @srcdir@
# Common prefix for machine-independent installed files.
# prefix = ade: because GS is a Libnix client! && is put on Fish-site
# prefix = /ade when GS is compiled using ixemul.library!
# prefix = ghostscript: because GS uses Libnix and is put on Aminet
# most end users don't have 'ade:'
# prefix = Ghostscript:
prefix = @prefix@
# Common prefix for machine-dependent installed files.
exec_prefix = $(prefix)
# Directory to install executables in.
bindir = $(exec_prefix)
# Directory to install libraries in.
libdir = $(exec_prefix)/lib
# Directory to install the Info files in.
infodir = $(prefix)/info
# Directory to install script files in.
scriptdir = $(bindir)batch
# Directory to install the man page in.
mandir = $(prefix)man
man1ext = 1
man1dir = $(mandir)/man$(man1ext)
# Number to put on the man page filename.
manext = 1
datadir = $(prefix)data
gsdir = $(datadir)
gsdatadir = $(gsdir)
docdir=$(prefix)doc
exdir=$(prefix)examples
GS_DOCDIR=$(docdir)
# Program to install executables.
INSTALL_PROGRAM = @INSTALL_PROGRAM@
# Program to install data like man pages.
INSTALL_DATA = @INSTALL_DATA@
# Generic install program.
INSTALL = @INSTALL@
CC = @CC@
# Use this verion if you compile for Libnix, else the current one
#DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG)
DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG) #-DIXEMUL
# Do a 'setenv="-noixemul"' before running 'configure' !
# if one wants the libnix version of GS
# configure will add it to the other LDFLAGS
LIBS = @LIBS@
# Note: this makefile assumes you are using gcc in ANSI mode.
# ------------------------------- Options ------------------------------- #
####### The following are the only parts of the file you should need to edit.
# ------ Generic options ------ #
# Define the installation commands and target directories for
# executables and files. The commands are only relevant to `make install';
# the directories also define the default search path for the
# initialization files (gs_*.ps) and the fonts.
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with a :.
# Note that if you want the interpreter to search the current directory, .,
# you must include it explicitly.
GS_LIB_DEFAULT=$(gsdatadir),$(prefix)fonts
# Define the name of the interpreter initialization file.
# (There is no reason to change this.)
GS_INIT=gs_init.ps
# Choose generic configuration options.
# -DDEBUG
# includes debugging features (-Z switch) in the code.
# Code runs substantially slower even if no debugging switches
# are set.
# -DNOPRIVATE
# makes private (static) procedures and variables public,
# so they are visible to the debugger and profiler.
# No execution time or space penalty.
#GENOPT=-DDEBUG
GENOPT=
# Define the name of the executable file.
GS=gs
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may haveneed change this if the IJG library version changes.
# See jpeg.mak for more information.
JSRCDIR=$(srcdir)/jpeg-6a
JVERSION=6
# Define the directory where the PNG library sources are stored,
# and the version of the library that is stored there.
# You may need to change this if the libpng version changes.
# See libpng.mak for more information.
PSRCDIR=$(srcdir)/libpng
PVERSION=89
# Choose whether to use a shared version of the PNG library (-lpng).
# See gs.mak and make.txt for more information.
SHARE_LIBPNG=0
# Define the directory where the zlib sources are stored.
# See zlib.mak for more information.
ZSRCDIR=$(srcdir)/zlib
# Choose whether to use a shared version of the zlib library (-lgz).
# See gs.mak and make.txt for more information.
SHARE_ZLIB=0
# Define the configuration ID. Read gs.mak carefully before changing this.
CONFIG=
# ------ Platform-specific options ------ #
# Define the name of the C compiler.
# JOOP: done in configure script
#CC=gcc
# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.
CCLD=$(CC)
# Define the default gcc flags.
# To work around the gcc 2.7.x optimizer bug,
# add -Dconst= and remove -Wcast-qual and -Wwrite-strings.
#GCFLAGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
GCFLAGS=-Dconst= -Wall -Wpointer-arith -Wstrict-prototypes -fno-builtin
# Define the other compilation flags. Add at most one of the following:
# -DBSD4_2 for 4.2bsd systems.
# -DSYSV for System V or DG/UX.
# -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
# or any System III Unix, or System V release 3-or-older Unix.
# -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
# -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
# XCFLAGS can be set from the command line.
# We don't include -ansi, because this gets in the way of the platform-
# specific stuff that <math.h> typically needs; nevertheless, we expect
# gcc to accept ANSI-style function prototypes and function definitions.
#CFLAGS=-g -O $(GCFLAGS) $(XCFLAGS)
# - Make sure that the version string of gdevamiga.c is correctly included
# for that to happen you need to modify the specs file or hand define
# cpu options (-m68030 -DMC68030 -m68881 -DMC68881 etc)
CFLAGS=@CFLAGS@ $(GCFLAGS) $(XCFLAGS)
# Define platform flags for ld.
# SunOS 4.n may need -Bstatic.
# XLDFLAGS can be set from the command line.
#LDFLAGS=$(XLDFLAGS) -pg
LDFLAGS=@LDFLAGS@ $(XLDFLAGS)
# Define any extra libraries to link into the executable.
# ISC Unix 2.2 wants -linet.
# SCO Unix needs -lsocket if you aren't including the X11 driver.
# SVR4 may need -lnsl.
# (Libraries required by individual drivers are handled automatically.)
EXTRALIBS=
# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
# in particular, SCO Xenix, Unix, and ODT just want
#XINCLUDE=
# Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
# not in $(XINCLUDE).
XINCLUDE=-I/usr/X11R6.1/include
# Define the directory/ies and library names for the X11 library files.
# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
# (dynamic libraries on SVR4) and should not include -L.
# Both can be null if these files are in the default linker search path;
# in particular, SCO Xenix, Unix, and ODT just want
#XLIBDIRS=
# X11R6 (on any platform) may need
#XLIBS=Xt SM ICE Xext X11
#XLIBDIRS=-L/usr/local/X/lib
XLIBDIRS=-L/usr/X11R6.1/lib
XLIBDIR=
XLIBS=Xt Xext X11
# Define whether this platform has floating point hardware:
# FPU_TYPE=2 means floating point is faster than fixed point.
# (This is the case on some RISCs with multiple instruction dispatch.)
# FPU_TYPE=1 means floating point is at worst only slightly slower
# than fixed point.
# FPU_TYPE=0 means that floating point may be considerably slower.
# FPU_TYPE=-1 means that floating point is always much slower than
# fixed point.
# JOOP: due to a bug (?) in ADE snapshot 2-17-97, FPU_TYPE needs atleast
# 0 or greater.
FPU_TYPE=0
# ------ Devices and features ------ #
# Choose the language feature(s) to include. See gs.mak for details.
FEATURE_DEVS=level2.dev writeppm.dev pdf.dev pipe.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
COMPILE_INITS=0
# Choose the device(s) to include. See devs.mak for details.
DEVICE_DEVS=amiga.dev amiga_custom.dev amiga_printer.dev amiga_ilbm.dev
#DEVICE_DEVS1=x11.dev x11alpha.dev x11cmyk.dev x11mono.dev
#DEVICE_DEVS2=
DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev
DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
DEVICE_DEVS12=psmono.dev bit.dev bitrgb.dev bitcmyk.dev
DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
DEVICE_DEVS14=bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev
DEVICE_DEVS15=pdfwrite.dev
# ---------------------------- End of options --------------------------- #
# Define the name of the partial makefile that specifies options --
# used in dependencies.
MAKEFILE=gcc-head.mak
# Define the ANSI-to-K&R dependency. (gcc accepts ANSI syntax.)
AK=
# Define the compilation rules and flags.
CCC=$(CC) $(CCFLAGS) -c
CCAUX=$(CC)
#We can't use -fomit-frame-pointer with -pg....
#CCLEAF=$(CCC)
CCLEAF=$(CCC) -fomit-frame-pointer
# --------------------------- Generic makefile ---------------------------- #
# The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
# is generic. tar_cat concatenates all these together.